<script setup lang="ts">
const props = defineProps<{
  title: string
}>()

const emit = defineEmits(['close'])

function handleSubmit() {
  emit('close')
}
</script>

<template>
  <view class="flex justify-between items-center pt-40rpx px-30rpx pb-30rpx">
    <view class="text-36rpx leading-36rpx text-primary font-bold">
      {{ props.title }}
    </view>
    <button
      class="m-0 text-28rpx leading-28rpx text-white px-20rpx py-15rpx bg-brand rounded-full"
      @tap="handleSubmit"
    >
      确定
    </button>
  </view>
</template>
